#ifndef HEADER_GESTIONTOUCHE
#define HEADER_GESTIONTOUCHE

#include <SDL/SDL.h>
#include "glob.h"
#include "string.h"
#include "stdio.h"

class GestionTouche{

public :
	GestionTouche(Touche t, SDL_Surface *ecran);
	~GestionTouche();
	void afficher(SDL_Rect pos , SDL_Event event);
	void gestionTouche(SDL_Event event);
	Touche getTouche();

	static Touche lireTouche(FILE *file);
	static void sauverTouche(FILE *file , Touche tou);

	int w();
	int h();
private :
	Touche t;
	SDL_Surface *ecran;
	SDL_Surface *text;
	bool estCliquer;
	double timeDernierCligno;
};
#endif


